package cn.wolfcode.crm.service;


import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.EmployeeQueryObject;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IEmployeeService {

    void deleteByPrimaryKey(Long id);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    void saveOrUpdate(Employee entity);

    PageResult query(QueryObject qo);

    void changeState(Long id);


    void changePwd(String password,Long id);

    void insert(Employee employee);

    /**
     * 查询员工列表信息.只有名字和id
     * @return 返回员工集合
     */
    List<Employee> listAll();
}
